/*
 * @Descripttion: 
 * @version: 
 * @Author: weihua.yao
 * @Date: 2020-02-26 16:35:47
 * @LastEditTime: 2020-02-26 18:36:52
 */
let a = {}
//console.log(a.__proto__)

function fn() {}

console.log(fn.__proto__)
console.log(Function.prototype)

function Foo(name, age) {
  this.name = name
}
Foo.prototype.sayHello = function () {
  console.log('hello' + this.name)
}

var f = new Foo('james')
f.sayHello()  
f.toString()
console.log(f.name)
console.log(f instanceof Object)